<!--{if $op == 'use'}-->
<div style="width:370px;">
	<h4 class="mtm mbn">{lang visit_method}</h4>
	<ul class="poke cl">
		<li>
			<input id="way_visit" type="radio" name="visitway" class="pr" value="visit" checked="checked" onclick="$('visitmsgs').style.display='none';$('visitpokes').style.display='none';" />
			<label for="way_visit">{lang visit_space}</label>
		</li>
		<li>
			<input id="way_poke" type="radio" name="visitway" class="pr" value="poke" onclick="$('visitmsgs').style.display='none';$('visitpokes').style.display='';" />
			<label for="way_poke">{lang say_hi}</label>
		</li>
		<li>
			<input id="way_comment" type="radio" name="visitway" class="pr" value="comment" onclick="$('visitmsgs').style.display='';$('visitpokes').style.display='none';" />
			<label for="way_comment">{lang space_message}</label>
		</li>
	</ul>

	<div id="visitmsgs" style="display:none;">
		<p>{lang select_one_message}</p>
		<ul class="mtm poke cl">
			<li>
				<input id="visitmsg_1" type="radio" name="visitmsg" class="pr" value="{lang visitmsg_1}" checked="checked" />
				<label for="visitmsg_1">{lang visitmsg_1}</label>
			</li>
			<li>
				<input id="visitmsg_2" type="radio" name="visitmsg" class="pr" value="{lang visitmsg_2}" />
				<label for="visitmsg_2">{lang visitmsg_2}</label>
			</li>
			<li>
				<input id="visitmsg_3" type="radio" name="visitmsg" class="pr" value="{lang visitmsg_3}" />
				<label for="visitmsg_3">{lang visitmsg_3}</label>
			</li>
			<li>
				<input id="visitmsg_4" type="radio" name="visitmsg" class="pr" value="{lang visitmsg_4}" />
				<label for="visitmsg_4">{lang visitmsg_4}</label>
			</li>
			<li>
				<input id="visitmsg_5" type="radio" name="visitmsg" class="pr" value="{lang visitmsg_5}" />
				<label for="visitmsg_5">{lang visitmsg_5}</label>
			</li>
			<li>
				<input id="visitmsg_6" type="radio" name="visitmsg" class="pr" value="{lang visitmsg_6}" />
				<label for="visitmsg_6">{lang visitmsg_6}</label>
			</li>
		</ul>
	</div>
	<!--{eval
	$icons = array(
		1 => '<img src="'.STATICURL.'image/poke/cyx.gif" /> {lang poke_1}',
		2 => '<img src="'.STATICURL.'image/poke/wgs.gif" /> {lang poke_2}',
		3 => '<img src="'.STATICURL.'image/poke/wx.gif" /> {lang poke_3}',
		4 => '<img src="'.STATICURL.'image/poke/jy.gif" /> {lang poke_4}',
		5 => '<img src="'.STATICURL.'image/poke/pmy.gif" /> {lang poke_5}',
		6 => '<img src="'.STATICURL.'image/poke/yb.gif" /> {lang poke_6}',
		7 => '<img src="'.STATICURL.'image/poke/fw.gif" /> {lang poke_7}',
		8 => '<img src="'.STATICURL.'image/poke/nyy.gif" /> {lang poke_8}',
		9 => '<img src="'.STATICURL.'image/poke/gyq.gif" /> {lang poke_9}',
		10 => '<img src="'.STATICURL.'image/poke/dyx.gif" /> {lang poke_10}',
		11 => '<img src="'.STATICURL.'image/poke/yw.gif" /> {lang poke_11}',
		12 => '<img src="'.STATICURL.'image/poke/ppjb.gif" /> {lang poke_12}',
		13 => '<img src="'.STATICURL.'image/poke/yyk.gif" /> {lang poke_13}'
	);
	}-->
	<div id="visitpokes" class="mtm" style="display: none;">
		<p>{lang select_a_poke}</p>
		<ul class="mtm poke cl">
			<!--{loop $icons $key $value}-->
			<li>
				<input id="visitpoke_$key" type="radio" name="visitpoke" value="$key"{if $key==1} checked="checked"{/if}>
				<label for="visitpoke_$key">$value</label>
			</li>
			<!--{/loop}-->
		</ul>
	</div>
</div>
<!--{elseif $op=='show'}-->
	<!--{template common/header}-->
	<script type="text/javascript">
		var html = ''
	<!--{if $_POST[visitway]=='poke'}-->
			+ '<p>{lang poke_folowing_friends}</p>'
	<!--{elseif $_POST[visitway]=='comment'}-->
			+ '<p>{lang friends_space_message_following}</p>'
	<!--{else}-->
			+ '<p>{lang space_access_following_friends}</p>'
	<!--{/if}-->
			+ '<ul class="mtm ml mls cl" style="width:370px;">'
	<!--{loop $users $value}-->
			+ "<li>"
			+ '<div class="avt"><a href="home.php?mod=space&uid=$value[uid]" target="_blank">$value[avatar]</a></div>'
			+ '<p><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]" target="_blank">$value[username]</a></p>'
			+ '</li>'
	<!--{/loop}-->
			+ '</ul>';
		$('hkey_$_G[gp_handlekey]').innerHTML = html;
		$('hbtn_$_G[gp_handlekey]').style.display = 'none';
		setMenuPosition('fwin_$_G[gp_handlekey]', 'fwin_$_G[gp_handlekey]', '00');
	</script>
	<!--{template common/footer}-->
<!--{/if}-->